WaitForExists

Waits a period of time for a window or control to exist before continuing with the next statement and returns True or False to indicate if it is found.

This statement is often used with conditional statements to handle known exceptions. For example, you can use it to determine if a window, control, or page is displayed before performing actions. See Handling known exceptions.

Syntax

WaitForExists(WaitTime)

Arguments

Argument Description
WaitTime Maximum number of milliseconds to search for the window or control.

Return value

Value Description
True Window or control was found.
False Window or control was not found.

Supported objects

Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window

Example

Window("Feedback").HTMLLink("linkSubmit").WaitForExists(5000)